package com.example.wwj.mapper;

import com.example.wwj.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    List<Student> findAll();

    int insert(Student student);

    int updateStudent(Student student);

    List<Student> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize,@Param("class_id") Integer class_id,@Param("grade_id") Integer grade_id,@Param("name") String name);

    Integer selectTotal(@Param("class_id") Integer class_id,@Param("grade_id") Integer grade_id,@Param("name") String name);

    int deleteStudentsByIds(Map<String, Object> map);
}
